﻿using System;
using System.Text.RegularExpressions;

namespace Bookworm.Core
{
    [Serializable]
    public sealed class LanguageFrame : TextFrame
    {
        protected override Regex Format
        {
            get { return LanguageRegex; }
        }

        private static readonly Regex LanguageRegex = new Regex(@"^[A-Za-z]{2}(-[A-Za-z]{2})?$");
    }
}
